/*************************************
 * Created by WebStorm
 * Author : 艾尼亚尔·毛拉吾提
 * QQ : 524155792  WeChat : ainiyar0124
 * Created Time :2024/2/6 13:29
 Desc :
 **************************************/
import type {Fn} from '@/libs/help';
// @ts-ignore
import {NButton} from 'naive-ui';

export interface PopConfirm {
    title: string;
    okText?: string;
    cancelText?: string;
    confirm: Fn | Object;
    cancel?: Fn;
    icon?: string;
}

// @ts-ignore
export interface ActionItem extends NButton["props"] {
    onClick?: Fn;
    label?: string;
    color?: "success" | "error" | "warning";
    icon?: string;
    popConfirm?: PopConfirm|any;
    disabled?: boolean;
    divider?: boolean;
    auth?: boolean;
    type?:string,
    onPositiveClick?:Fn,
    confirm?:object,
    // 权限编码控制是否显示
    permission?: string | string[] | object|boolean;
}